package com.seari.service;

import com.seari.pojo.FlowMajor;

import java.util.List;

public interface FlowMajorService {
    public List<FlowMajor> getFlowMajorStatu(String faultId,String tag);
    public List<FlowMajor> getFlowMajorOrderDis(FlowMajor flowMajor);
    public List<FlowMajor> getFlowMajorOrderAns(FlowMajor flowMajor);
    public List<FlowMajor> getFlowMajorOrderCurrent(FlowMajor flowMajor);
    public int updDisposeTimeAndStatu(FlowMajor flowMajor);
    public List<Integer> getFlowAllMajor(String faultId);
    public String getAnsTimeByLinkIdForDiffTime(FlowMajor flowMajor);
    public String getFlowCount(String faultId);
    public String getAnswerTimeDiff(String faultId);
    public String getDisposeTimeDiff(String faultId);
    public Integer getflowIsExit(String faultId);
    public Integer getAnswerMaxLinkId(String faultId);
    public Integer getDisposeMinLinkId(String faultId);
    /**
     * 响应时间差值
     * @param faultId
     * @return
     */
    public String getDisposeTime(String faultId);
    /**
     * 处置时间差值
     * @param faultId
     * @return
     */

    public int updCurrentNodeStatu(FlowMajor flowMajor);

    /**
     * 查询当前故障点是否存在有尚未处理完的专业故障点
     */
    public int selFlowIsMajor(String faultId);
    /**
     * 更新预计完成时间 根据 对比值
     * @param flowMajor
     * @return int
     */
    public int updAnsTimeForDisAnsDiff(FlowMajor flowMajor);
}
